package com.victor.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name = "infomationarticle")
@Data
@NoArgsConstructor
@AllArgsConstructor
/**
 * 信息流文案
 * @author 
 *
 */
public class InfomationArticle {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "a_id", unique = true, nullable = false, length = 11)
	private Integer aid;//id

	@Column(name = "content", length = 5000)
	private String content;//内容
	
	@Column(name="infoid",length=50)
	private String infoid;//信息流id

}
